/* Kanvas Paint and Drawing Tool.
 * Copyright (C) 2011 Darryl Wallace
 * wallacdj@gmail.com / darryl@wallynet.ca
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

#include "KanvasStandardPlugin.h"
#include "BrushTool.h"
#include "RectangleTool.h"
#include "RoundedRectangleTool.h"
#include "EllipseTool.h"
#include "FreeFormTool.h"
#include "EraserTool.h"

QList<const QMetaObject *> KanvasStandardPlugin::tools() const
{
    Q_INIT_RESOURCE(kanvasStandardPlugin);  // this should only be required for the static plugin.
    QList<const QMetaObject *> list;

    list.append( &BrushTool::staticMetaObject);
    list.append( &RectangleTool::staticMetaObject);
    list.append( &RoundedRectangleTool::staticMetaObject);
    list.append( &EllipseTool::staticMetaObject);
    list.append( &FreeFormTool::staticMetaObject);
    list.append( &EraserTool::staticMetaObject);


    return list;
}

QList<const QMetaObject *> KanvasStandardPlugin::filters() const
{
    QList<const QMetaObject *> list;
    return list;
}

QList<IPlugin::PluginType> KanvasStandardPlugin::toolTypes() const
{
    QList<IPlugin::PluginType> list;
    list<<IPlugin::Tool;    //BrushTool
    list<<IPlugin::Tool;    //RectangleTool
    list<<IPlugin::Tool;    //RoundedRectangleTool
    list<<IPlugin::Tool;    //EllipseTool
    list<<IPlugin::Tool;    //FreeFormTool
    list<<IPlugin::Tool;    //EraserTool
    return list;
}

QString KanvasStandardPlugin::pluginName() const
{
    return QString("Kanvas Standard Plugin");
}

QString KanvasStandardPlugin::authorInfo() const
{
    return QString ("Darryl Wallace");
}

QString KanvasStandardPlugin::authorContact() const
{
    return QString ("darryl@wallynet.ca");
}

Q_EXPORT_PLUGIN2(kanvas_standardtoolsplugin, KanvasStandardPlugin)
